/**
 * 反向代理
 */
const express = require('express');

const router = express.Router();
const proxy = require('http-proxy-middleware');
const config = require('../web-app/config/web.config')

// 代理服务
router.use('/', proxy({
  target: config.HttpUrl,
  changeOrigin: true,
  pathRewrite: { '^/web': '' },
  secure:false
}));

module.exports = router;
